﻿<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta http-equiv="X-UA-Compatible" content="ie=edge" />
	<title>Document</title>
</head>
<body>
	<div id="app">
	</div>
	<script type="text/javascript">
		function dateSort(arr){
			if(arr instanceof Array){
				arr.forEach(v=>{
					if(v instanceof Object){
						
						arr.sort((a,b)=>{
							return new Date(a.date)<new Date(b.date)?1:-1
						})
					}else
					{
						arr.sort((a,b)=>{
							return new Date(a)<new Date(b)?1:-1
						})
					}
				})
				
			}
			return(arr)
		}
		
	</script>
	
	
</body>
</html>